const express = require("express")
const app = express()

app.use(express.json())

app.get('/', (req, res) => {
    res.send("index")
})

app.post('/user', (req, res) => {
    console.log("ok")
    console.log(req.body)
    res.send("user")
})

app.listen(8080, () => {
    console.log("启动服务器")
})